#ifndef DHD_FRONTEND_CONFIG
#define DHD_FRONTEND_CONFIG

#include <string>
#include <stdexcept>

namespace dhd
{
namespace server
{

   class ConfigurationError : public std::runtime_error
   {
     public:
       ConfigurationError( const std::string & what ) : std::runtime_error(what) {}
       ~ConfigurationError() throw() {}
   };
   
   
   struct ServerConfig
   {   
     public:
       
       // throws ConfigurationError
       ServerConfig( int argc, char *argv[] );
       
       int             serv_port;
       std::string     serv_dir;
       
       bool            use_ssl;
       
       bool            use_srp;
       std::string     srp_database_file;
   };

   
} // end namespace dhd::server
} // end namespace dhd



#endif